package Abstract_factory;

/**
 * Created with IntelliJ IDEA.
 * User: Bjarke
 * Date: 20-10-13
 * Time: 18:05
 * To change this template use File | Settings | File Templates.
 */
public abstract class MonsterBuilder {

    protected abstract Monster makeMonster(String typeOfMonster);

    public Monster orderAMonster(String typeOfMonster){

        Monster theMonster = makeMonster(typeOfMonster);

        theMonster.makeMonster();
        theMonster.checkIfVictimIsInRange();
        theMonster.attackTheVictim();

        return theMonster;
    }
}


